<template>
  <!-- <h3 class="mb-7 text-3xl font-bold text-center xl:text-1xl enter-x xl:text-left"> -->
  <h3 class="mb-7 text-2xl text-center xl:text-2xl enter-x">
    {{ getFormTitle }}
  </h3>
</template>
<script lang="ts" setup>
  import { computed, unref } from 'vue';
import { LoginStateEnum, useLoginState } from './useLogin';
import { useI18n } from '/@/hooks/web/useI18n';

  const { t } = useI18n();

  const { getLoginState } = useLoginState();

  const getFormTitle = computed(() => {
    const titleObj = {
      [LoginStateEnum.RESET_PASSWORD]: t('sys.login.forgetFormTitle'),
      [LoginStateEnum.LOGIN]: t('sys.login.signInFormTitle'),
      [LoginStateEnum.REGISTER]: t('sys.login.signUpFormTitle'),
      [LoginStateEnum.MOBILE]: t('sys.login.mobileSignInFormTitle'),
      [LoginStateEnum.QR_CODE]: t('sys.login.qrSignInFormTitle'),
    };
    return titleObj[unref(getLoginState)];
  });
</script>
<style scoped>
h3{
  /* -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none; */
  color: #3f3f3f;
}
</style>
